import { isDev } from "@/secondary/utils/utils";
import { RouteRecordRaw } from "vue-router";
import { DashboardBreadcrumb } from "./dashboard";

const breadcrumbList = [DashboardBreadcrumb, { name: "测试", i18n: "routes.TEST" }];
const devRoutes: RouteRecordRaw[] = isDev
  ? [
      {
        path: "/test",
        name: "Test",
        component: () => import("@/views/test/test.vue"),
        meta: {
          title: "测试",
          isKeepAlive: true,
          breadcrumbList,
          icon: "icon-xinicon_huabanfuben",
          i18n: "routes.TEST",
        },
      },
    ]
  : [];

export const devMenu = isDev
  ? [
      {
        title: "测试",
        i18n: "routes.TEST",
        path: "/test",
        icon: "icon-xinicon_huabanfuben",
        children: [],
      },
    ]
  : [];

export default devRoutes;
